//
//  Card.h
//  SpriteBatches
//
//  Created by Steffen Itterheim on 04.08.10.
//  Copyright 2010 Steffen Itterheim. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "cocos2d.h"


typedef  enum 
{
    STATE_REST = 0,
    STATE_SHOW_CARD_1,
    STATE_SHOW_CARD_2,
    STATE_SHOW_ALL,
    STATE_SHOW_BACK
}StateCard;

@interface Card : CCSprite 
{

@private
    bool            m_bHideAnimation;
    StateCard       m_eState;
    CCSprite        *m_pNumLeft;
    CCSprite        *m_pNumRight;
    int             m_iAnimation_cardRight;
    int             m_iAnimation_cardLeft;
    
@public
    int             m_Cards[2];

}

+(id)   card;
-(void) showCards: (int) rightIndex andLeftIndex:(int) leftIndex;
-(void) hideCards;
-(void) onFinishShowCard1;
-(void) onFinishShowCard2;
-(void) onFinishBackShowCard1;
-(void) onFinishBackShowCard2;


@end
